package com.wangxin.study8.constructor;


import com.wangxin.study8.functional.Converter;

/**
 * @author jojo.wang
 * @title: SomethingTest
 * @projectName http-invoke
 * @description: Java 8允许您通过::关键字传递方法或构造函数的引用。
 * @date 2019/3/1314:24
 */

public class SomethingTest {
    public static void main(String[] args) {
        Something s = new Something();
        Converter<String,String> converter = s::doSome;
        String str = converter.convert("java");
        System.out.println(str.getClass());
    }
}
